#include<stdio.h>
#include<stdlib.h>
#define MIN(x,y)   ((x)<(y)) ? (x) : (y)
int main(){
    char* p1 = "abc";
    char* p2 = "adc";
    int cnt,res = 0;
    cnt = MIN(strlen(p1),strlen(p2));
    res = strncmp(p1,p2,cnt);
    if(res==0)
        printf("p1 == p2\n");
    else if(res>0)
        printf("p1 > p2\n");
    else
        printf("p1 < p2\n");
    return 0;
}
